<?php if($Page):?>
<h1 class="nika_page_title"><?php echo $Page['title']?></h1>
<div class="nika_page_body"><?php echo $Page['body']?></div>
<?php else:?>
<h1 class="nika_page_title">Добро пожаловать!</h1>
&nbsp;
<?php endif;?>

<?php switch ($Page['alias']) {
	case 'about-project': echo '<hr><b>Наши отделы:</b><br/>'; ?>
<ul class="our_branches">
<?php foreach ($allbranches as $branch)
{ ?>
	<li><?php echo link_to($branch['title'],'branch/index?cbranch='.$branch['id']);?>
	</li>
	<?php } ?>
</ul>
	<?php
	break;
default:
	break;
}
?>